<div class="row">
<div class="col-xs-12">
	<div class="box">
		<div class="box-header">
			<form id="auto-query-form" class="form-inline" method="post" role="form">
				<div class="form-group">
					<label class="control-label" for="query.keyword">关键字</label>
					<input id="query.keyword" name="query.keyword" placeholder="请输入关键字" class="form-control"/>
				</div>
				<div class="form-group">
					<label class="control-label" for="query.type">公告类型</label>
					#@dict_select("query.type","","NOTICE_TYPE",true,"公告类型","")
				</div>				
				<div class="form-group">
					<label class="control-label" for="query.state">有效性</label>
					#@dict_select("query.state","01","DATA_STATE",true,"有效性","")
				</div>
				<div class="form-group">
					<label class="control-label" for="query.stime">签发日期</label>
					<input id="query.stime" name="query.stime" value="#(query.stime??)" placeholder="签发日期始" class="form-control date" datetimepicker="yyyy-mm-dd" maxlength="19"/>
					<label class="control-label" for="query.etime">至</label>
					<input id="query.etime" name="query.etime" value="#(query.etime??)" placeholder="签发日期止" class="form-control date" datetimepicker="yyyy-mm-dd" maxlength="19"/>
				</div>					
				<div class="form-group">
					#@query_btn()
				</div>
			</form>
		</div>

		<div class="box-body">
			<table id="auto_data_table" data-form-width="900" class="table table-striped table-hover table-bordered dataTable no-footer" width="100%">
			</table>
		</div>

		<div class="box-footer text-center">
			#@add_btn("notice/index",true)
			#@edit_btn("notice/index",true)
			#@del_btn("notice/index",true)
		</div>
	</div>
</div>
</div>
<script type="text/javascript">
	$(document).ready(function() {
		$('#auto_data_table').autoDataTable({
			controller : "notice",
			title : "通知公告",
			columns : [
			   { "data" : "title", "name" : "title", "title" : "标题" },
			   { "data" : "type", "name" : "type", "title" : "类型" ,render : function(data, type, row, meta) {
	                return dict_name("NOTICE_TYPE",data);
	            } },
			   { "data" : "issure", "name" : "issure", "title" : "签发人" },
			   { "data" : "stime", "name" : "stime", "title" : "签发日期" ,render : function(data, type, row, meta) {
	                return dateConvert(data,"yyyy-mm-dd");
	            } },
			   { "data" : "etime", "name" : "etime", "title" : "到期日期" ,render : function(data, type, row, meta) {
	                return dateConvert(data,"yyyy-mm-dd");
	            } },
			   { "data" : "state", "name" : "state", "title" : "状态" ,render : function(data, type, row, meta) {
	                return dict_name("DATA_STATE",data);
	            } }
			]
		});
	});
</script>